<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>jquery点击弹出框城市选择器代码</title>
		<link rel="stylesheet" type="text/css" media="all" href="css/tyle.css">
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>

	</head>

	<body>

		<input type="text" placeholder="出发地" id="place" name="">
		<input type="text" placeholder="目的地" id="dplace" name="">
		<!-- 选择城市 -->
		<div id="in_city" style="display: none"></div>

		<script type="text/javascript" src="js/cityTemplate.js"></script>
		<script type="text/javascript">
			
			var place = $("#place"); //出发地
			var dplace = $("#dplace"); //出发地

			var cityA = $(".city_a_le1 a"); //城市
			// 默认值
			inCity.width = "345"; //城市选择框  宽
			inCity.height = "auto"; //城市选择框  高
			inCity.id = "#in_city"; //城市选择框  父级ID
			inCity.Children = '.city_a_le1'; //城市名box
			// 初始化 城市HTML模板
			$(inCity.id).prepend(inCity._template.join(''));
			inCity.Hot(cityA);
			//城市 导航
			$(".screen a").click(function(obj) {
				inCity.payment($(this));
			})

			inCity.place(place); //出发地
			inCity.place(dplace); //目的地
			inCity.cityClick(cityA); //input显示赋值城市
		</script>
		</div>

	</body>

</html>